#include "heap.hpp"
#include "tools.hpp"
#include <cstdio>
#include <vector>


int main()
{
    auto& ansi = lxj::OpenANSI::instance();
    ansi.set_mode(1).set_color(76);
    lxj::Time time;

    auto&            random = lxj::Random<int>::instance();
    std::vector<int> vi(5);
    /* for (auto& v : vi) {
        int x = random(0, 9), temp = x;
        int y = random(0, 9);
        if (x > y) {
            x = y;
            y = temp;
        }
        v.first  = x;
        v.second = y;
    } */
    for (auto& v : vi) {
        v = random(-100, 200);
        std::printf("%d, ", v);
        // std::printf("%d}, ", v.second);
    }
    int count = lxj::halveArray(vi);
    std::puts("\n--------------------------------------");
    std::printf("%d, ", count);
    // std::printf("%d}, ", r);
    std::puts("");
    return 0;
}